package org.example.leetcode;



/**
 * @outher 刘旭
 * @date 2024/6/21 13:31
 */
public class Topic09 {
    public static void main(String[] args) {

    }
    public boolean isPalindrome(int x) {
        String s = x+"";
        int i = 0;
        int j = s.length()-1;
        while (i<=j){
            if (s.charAt(i++) != s.charAt(j--) ){
                return false;
            }
        }
        return true;
    }
}
